<?php

// No direct access
 
defined('_JEXEC') or die('Restricted access'); ?>
<div id="subHeader">
	<div class="login">
		<img alt="Sartu" src="<?php echo JURI::root();?>templates/lingolangtemplate/images/kandadoa.jpg">
		<div><a class="morea" href="index.php?option=com_user&view=login">Sartu zure kontuan</a></div>
	</div>
	<a id="img1" class="atalak current" href="index.php?option=com_hizkuntzak&task=whoSpeaks">
		<div class="atalText"><?php echo $this->rsc->menu_who; ?></div>
	</a>
	<a id="img2" class="atalak morea" href="index.php?option=com_hizkuntzak&task=showLangDetails">
		<div class="atalText "><?php echo $this->rsc->menu_first; ?></div>
	</a>
	<a id="img3" class="atalak laranja"href="index.php?option=com_hizkuntzak&task=qas">
		<div class="atalText"><?php echo $this->rsc->menu_qa; ?></div>
	</a>
	<a id="img5" class="atalak berdea" href="index.php?option=com_hizkuntzak&task=numbers">
		<div class="atalText"><?php echo $this->rsc->menu_numbers; ?></div>
	</a>
	<a id="img4" class="atalak urdina" href="index.php?option=com_hizkuntzak&task=songs">
		<div class="atalText"><?php echo $this->rsc->menu_songs; ?></div>
	</a>
</div>
<div id="left">
	<div id="menu">
		<ul>
		<?php
			$color = 0;
			$text_color = "gorria";
			foreach($this->langs as $la){
				if ($color == 0) {
					$text_color = "gorria";
					$color++;
				}else if($color == 1){
					$text_color = "morea";
					$color++;
				}else if ($color == 2) {
					$text_color = "laranja";
					$color++;
				}else if ($color == 3) {
					$text_color = "urdina";
					$color++;
				}else if ($color == 4) {
					$text_color = "berdea";
					$color = 0;
				}
				if($this->c_lang == 'eu-ES'){

					if ($la->iso_code == $this->lang->iso_code) {
						print("<li class='selected'><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_eu</a></li><br/>");# code...
					} else{
						print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_eu</a></li><br/>");
					}
				}else{
					if ($la->iso_code == $this->lang->iso_code) {
						print("<li class='selected'><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_es</a></li><br/>");
					} else{
						print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_es</a></li><br/>");
					}
				}
			};
		?>
		<?php
		if($this->show){
			?>
			<br/>
			<hr/>
			<br/>
			<a href="index.php?option=com_hizkuntzak&task=adminHizkuntzak" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
			<span class="ui-button-text"><?php echo $this->rsc->admin_title; ?></span></a>
		<?php }?>
		</ul>
	</div>
</div>
<div id="content">
<h3>
	<?php 
		if($this->lang->pdfPath != null && $this->lang->pdfPath != ""){
	?>
		<a href="<?php echo $this->lang->pdfPath?>"><?php echo $this->rsc->lang_pdf; ?></a>
	<?php 
		} else {
			echo $this->rsc->lang_pdf; 
		}
	?>
</h3>
<br/>
<br/>
<?php 
	if($this->lang->alfPath != null || $this->lang->alfPath != ""){
?>
		<a href="<?php echo $this->lang->alfPath ?>"><img width="240" height="180" border="0" src="<?php echo $this->lang->alfPath ?>" align="left" id="alf" name="alf" /></a>
		
<?php 
	}
	if($this->lang->mapPath != null || $this->lang->mapPath != ""){
?>
<a href="<?php echo $this->lang->mapPath ?>"><img width="240" height="180" border="0" src="<?php echo $this->lang->mapPath ?>" align="middle" id="alf" name="map" /></a>
<?php 
	}
?>
</div>